split with multiple condition in java

48

split with multiple condition in java -

String text = "s: saturday, sunday, solar, selfie";
String[] words = text.split("[:,] ");

Comments

Submit
0 Comments